package com.greenleaf.serviceImpl;

import java.util.List;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;

import com.greenleaf.dao.OrderDetailDao;
import com.greenleaf.entity.OrderDetail;
import com.greenleaf.entity.SearchCon;
import com.greenleaf.service.OrderDetailService;


@Service("orderDetailService")
public class OrderDetailServiceImpl implements OrderDetailService {
	@Resource	
	private OrderDetailDao orderDetailDao;

	@Override
	public int addOrderDetail(OrderDetail orderDetail) {
		return orderDetailDao.addOrderDetail(orderDetail);
	}

	@Override
	public List<OrderDetail> getAllOrderDetail(SearchCon searchCon) {
		return orderDetailDao.getAllOrderDetail(searchCon);
	}

	@Override
	public int getTotalOrderDetail(SearchCon searchCon) {
		return orderDetailDao.getTotalOrderDetail(searchCon);
	}
	

	
}
